<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    // 页面加载事件
    $(() => {
        // 获取标签对象
        document.querySelector("img");
        let $imgObj = $("#imgID");
    })
</script>
</body>
</html>